declare function f<Foo extends Bar, Bar>(Bar: any): void